package com.ideaction.controller;

import com.ideaction.globalconst.Result;
import com.ideaction.req.PlayerCommonReqBody;
import com.ideaction.service.GiftCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author
 */
@RestController
public class GiftController {
    
    @Autowired
    private GiftCodeService giftCodeService;
    
    @PostMapping("/GetGiftCode")
    public String useGiftCode(@RequestBody PlayerCommonReqBody playerCommonReqBody) {
//        return Result.build().response();
        return giftCodeService.useGiftCode(playerCommonReqBody);
    }
}
